package com.jobsleaf.viewsorter.tree;

import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

import com.jobsleaf.tree.domain.Gsm;
import com.jobsleaf.tree.domain.Lac;
import com.jobsleaf.tree.domain.Rnc;
import com.jobsleaf.tree.domain.Subnetwork;
import com.jobsleaf.tree.domain.Utran;

public class SubnetworkLabelProvider extends LabelProvider 
{

	public String getText(Object element) 
	{
		if (element instanceof Subnetwork) 
		{
			return ((Subnetwork) element).getName();
		}
		else if (element instanceof Gsm) 
		{
			return ((Gsm) element).getName();
		}
		else if (element instanceof Lac) 
		{
			return ((Lac) element).getName();
		}
		else if (element instanceof Utran) 
		{
			return ((Utran) element).getName();
		}
		else if (element instanceof Rnc) 
		{
			return ((Rnc) element).getName();
		}

		return "Unknown Label ";
	}
}
